import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;


public class NextButton extends JButton implements ActionListener{
	private GuiClient gui;
	
	public NextButton(GuiClient gui) {
		super("next >");
		this.gui = gui;
		
		addActionListener(this);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		gui.nextQuestion(this);
		
	}
}
